﻿#ifndef CAMVIEW_H
#define CAMVIEW_H

#include <QDialog>
#include "stable.h"
#include "qcameraviewfinderex.h"
namespace Ui {
class camview;
}

class camview : public QDialog
{
    Q_OBJECT

public:

    ~camview();
    static camview* GetInstance(QWidget *parent = 0);
    void setupviewfinder(QCamera* cam);

private:
    explicit camview(QWidget *parent = 0);
    explicit camview(const camview &);
    camview & operator= (const camview &);
    void closeEvent(QCloseEvent* event);


    Ui::camview *ui;
    static camview* m_Instance;
    QCameraViewfinderEx* viewfinder;

signals:
    void close_message(void);
};

#endif // CAMVIEW_H
